class ItemModel {
  final String label;
  final String value;
  final String imagePath;

  ItemModel(
    {required this.label, required this.value, required this.imagePath});
}

class DigListEntity {
  int? code;
  String? msg;
  List<DigObjEntity>? data;
  int? total;
  String? systemTime;

  DigListEntity({this.code, this.msg, this.data, this.total, this.systemTime});

  DigListEntity.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    if (json['data'] != null) {
      data = <DigObjEntity>[];
      json['data'].forEach((v) {
        data!.add(new DigObjEntity.fromJson(v));
      });
    }
    total = json['total'];
    systemTime = json['systemTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['total'] = this.total;
    data['systemTime'] = this.systemTime;
    return data;
  }
}

class DigObjEntity {
  String? createBy;
  String? createTime;
  String? updateTime;
  int? delFlag;
  String? figureId;
  String? dataType;
  String? figureName;
  String? figureType;
  String? videoVolume;
  String? speechRate;
  String? figureFileId;
  String? status;
  String? figureUrl;
  String? voiceUrl;

  DigObjEntity(
      {this.createBy,
      this.createTime,
      this.updateTime,
      this.delFlag,
      this.figureId,
      this.dataType,
      this.figureName,
      this.figureType,
      this.videoVolume,
      this.speechRate,
      this.figureFileId,
      this.status,
      this.figureUrl,
      this.voiceUrl});

  DigObjEntity.fromJson(Map<String, dynamic> json) {
    createBy = json['createBy'];
    createTime = json['createTime'];
    updateTime = json['updateTime'];
    delFlag = json['delFlag'];
    figureId = json['figureId'];
    dataType = json['dataType'];
    figureName = json['figureName'];
    figureType = json['figureType'];
    videoVolume = json['videoVolume'];
    speechRate = json['speechRate'];
    figureFileId = json['figureFileId'];
    status = json['status'];
    figureUrl = json['figureUrl'];
    voiceUrl = json['voiceUrl'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['updateTime'] = this.updateTime;
    data['delFlag'] = this.delFlag;
    data['figureId'] = this.figureId;
    data['dataType'] = this.dataType;
    data['figureName'] = this.figureName;
    data['figureType'] = this.figureType;
    data['videoVolume'] = this.videoVolume;
    data['speechRate'] = this.speechRate;
    data['figureFileId'] = this.figureFileId;
    data['status'] = this.status;
    data['figureUrl'] = this.figureUrl;
    data['voiceUrl'] = this.voiceUrl;
    return data;
  }
}